* frame.el (frame-initialize): When deleting geometry
authorJim Blandy <jimb@redhat.com>
Thu, 10 Jun 1993 13:10:00 +0000 (13:10 +0000)
committerJim Blandy <jimb@redhat.com>
Thu, 10 Jun 1993 13:10:00 +0000 (13:10 +0000)
specifications from initial-frame-alist, remember that they may
occur more than once, and do, if the -geometry option was
specified as well as a .geometry resource.

lisp/frame.el

index f18dbb29606e632cac87b4270e8c07811810ec05..87cdd3666992514635061e58ed79e7a89ef56d90 100644 (file)
@@ -102,12 +102,13 @@ These supersede the values given in `default-frame-alist'.")
              ;; so that we won't reapply them in frame-notice-user-settings.
              ;; It would be wrong to reapply them then,
              ;; because that would override explicit user resizing.
-             (setq initial-frame-alist
-                   (delq (assq 'height initial-frame-alist)
-                         (delq (assq 'width initial-frame-alist)
-                               (delq (assq 'left initial-frame-alist)
-                                     (delq (assq 'top initial-frame-alist)
-                                           initial-frame-alist)))))
+             ;; Remember that they may occur more than once.
+             (let ((tail initial-frame-alist))
+               (while (consp tail)
+                 (if (and (consp (car tail))
+                          (memq (car (car tail)) '(height width top left)))
+                     (setq initial-frame-alist
+                           (delq tail initial-frame-alist)))))
              ;; Handle `reverse' as a parameter.
              (if (cdr (or (assq 'reverse initial-frame-alist)
                           (assq 'reverse default-frame-alist)